package com.nsoft.remotemedia.objects;

import java.util.Date;

import com.nsoft.remotemedia.utils.U2bUtils;

public class VideoItem {
	private String id;
	private String title;
	private String author;
	private String videoUrl;
	private String imageUrl;
	private String summary;
	private float rate;
	private long viewCount;
	private long duration;
	private Date postTime;
	
	public VideoItem() {}
	
	public VideoItem(String id,String title){
		this.id=id;
		this.title=title;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	
	public String getVideoUrl() {
		return videoUrl;
	}
	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}
	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
	
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	
	public float getRate() {
		return rate;
	}
	public void setRate(float rate) {
		this.rate = rate;
	}

	public long getViewCount() {
		return viewCount;
	}
	public void setViewCount(long viewCount) {
		this.viewCount = viewCount;
	}

	public long getDuration() {
		return duration;
	}
	public String getDurationStr(){
		return U2bUtils.getDuration(this.duration);
	}
	public void setDuration(long duration) {
		this.duration = duration;
	}

	public Date getPostTime() {
		return postTime;
	}
	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}
}
